#import "NSString+category.h"
#import "DDRSAHandler.h"
@implementation NSString (category)
- (NSString *)yjd_sign
{
  return handlerManager().signString(self);
}
- (NSString *)yjd_md5
{
    return handlerManager().md5(self);
}
- (BOOL)yjd_verifySign:(NSString *)sign
{
    return handlerManager().verifyStringWithSign(self,sign);
}
- (NSDictionary *)yjd_rc4_dec:(NSString *)string;
{
   return handlerManager().rc4_dec(self,[NSString stringWithFormat:@"appcenter%@",string]);
}

- (UIImage *)yjd_image
{    
    NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"CC" ofType:@"bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    NSString *path = [bundle pathForResource:self ofType:@"png"];
    return [UIImage imageWithContentsOfFile:path];
}

@end
